 /*
  * Copyright (c) 2021, 2023, yishun.cn All rights reserved.
  *
  */
 package cn.shun;

 import cn.shun.mapper.BookMapper;
 import cn.shun.mapper.DbMapper;
 import org.apache.ibatis.annotations.Select;
 import org.mybatis.spring.annotation.MapperScan;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.boot.ApplicationArguments;
 import org.springframework.boot.ApplicationRunner;
 import org.springframework.boot.SpringApplication;
 import org.springframework.boot.SpringBootVersion;
 import org.springframework.boot.autoconfigure.SpringBootApplication;

 /**
  * <p>Project: MyBatis2023 - App
  * <p>Powered by yishun On 2023-01-20 16:08:29
  *
  * @author yishun [2465734101@qq.com]
  * @version 1.0
  * @since 17
  */
 @SpringBootApplication
 public class App implements ApplicationRunner{
     @Autowired
     private BookMapper bm;
     @Autowired
     private DbMapper dm;
     public static void main(String[] args) {
         SpringApplication.run(App.class, args);
     }

     @Override
     public void run(ApplicationArguments args) throws Exception {

         System.out.println(bm.queryAll());
         System.out.println(dm.verison());
     }
 }
